package com.anket.person.model;
import java.util.Date;
import java.util.List;

import com.anket.address.model.Address;
import com.anket.poll.model.Poll;


public class Person{
	public long personId;
	public String name;
	public String lastname;
	public String email;
	public String password;
	
	public Address address;
	public Date createdDate;
	
	public Integer isAdmin;//1 admin
	public Integer status;//0 unaccepted 1 accepted
	
	public List <Poll> allPolls;
	
	
	

	public List<Poll> getAllPolls() {
		return allPolls;
	}
	public void setAllPolls(List<Poll> allPolls) {
		this.allPolls = allPolls;
	}
	public Integer getIsAdmin() {
		return isAdmin;
	}
	public void setIsAdmin(Integer isAdmin) {
		this.isAdmin = isAdmin;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public long getPersonId() {
		return personId;
	}
	public void setPersonId(long personId) {
		this.personId = personId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLastname() {
		return lastname;
	}
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Address getAddress() {
		return address;
	}
	public void setAddress(Address address) {
		this.address = address;
	}

	public Date getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}	
}